Skip to main content

Total Fees Collected

Queries the total amount of fees collected by the specifeid VLP.

query Vlp($contract: String, $pair: PairInput) {
vlp(contract: $contract, pair: $pair) {
total_fees_collected {
lp_fees {
totals {
denom
amount
}
}
euclid_fees {
totals {
denom
amount
}
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($contract: String!) {\n vlp(contract: $contract) {\n total_fees_collected {\n lp_fees {\n totals {\n denom\n amount\n }\n }\n euclid_fees {\n totals {\n denom\n amount\n }\n }\n }\n }\n}","variables":{"contract":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m"}}'

Open in Playground

Arguments

ArgumentTypeDescription
contractStringThe contract address of the VLP. Required if pair is not provided.
pairPairInputThe pair of tokens belonging to the VLP. Required if contract is not provided.

Return Fields

FieldTypeDescription
lp_feesLpFeesThe total fees collected by liquidity providers.
euclid_feesEuclidFeesThe total fees collected by Euclid protocol.

LpFees

FieldTypeDescription
denomStringThe denomination of the fee.
amountStringThe total amount of fees in that denomination.

EuclidFees

FieldTypeDescription
denomStringThe denomination of the fee.
amountStringThe total amount of fees in that denomination.